﻿
using Bootstrap5.Abstractions;

using Microsoft.AspNetCore.Components;

namespace Bootstrap5;

[CssClass("col-form-label")]
public class FormColumnLabel<TValue>:FormLabel<TValue>
{
    /// <summary>
    /// 列占比。
    /// </summary>
    [Parameter] public IGridDecorator Col { get; set; }
    /// <summary>
    /// 列的偏移数。
    /// </summary>
    [Parameter] public IGridDecorator Offset { get; set; }
	[Parameter][CssClass("col-form-label-")] public Size? Size { get; set; }

	protected override void BuildExtraCssClassProvider(ICssClassBuilder builder)
    {
        Col?.BuildClass(builder);
        Offset?.BuildClass(builder);
    }
}
